const joi = require('joi')

const username = joi.string().required()
const password = joi.string().required()
const phone = joi.string().required().max(11).min(11)
const sta = joi.number().required().max(1).min(0)
exports.login = {
    body: { username, password, sta }
}
exports.register = {
    body: { username, password, phone }
}